/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.edu.utn.frsf.tpae.a2012.g03.model;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author fededalla
 */
public class MovimientoPago implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer movId;
    private String movPagCod;
    private String movPagUsrCmt;
    private Movimiento mov;

    public MovimientoPago() {
    }

    public MovimientoPago(Integer movId) {
        this.movId = movId;
    }

    public MovimientoPago(Integer movId, String movPagCod, String movPagUsrCmt) {
        this.movId = movId;
        this.movPagCod = movPagCod;
        this.movPagUsrCmt = movPagUsrCmt;
    }

    public Integer getMovId() {
        return movId;
    }

    public void setMovId(Integer movId) {
        this.movId = movId;
    }

    public String getMovPagCod() {
        return movPagCod;
    }

    public void setMovPagCod(String movPagCod) {
        this.movPagCod = movPagCod;
    }

    public String getMovPagUsrCmt() {
        return movPagUsrCmt;
    }

    public void setMovPagUsrCmt(String movPagUsrCmt) {
        this.movPagUsrCmt = movPagUsrCmt;
    }

    public Movimiento getMov() {
        return mov;
    }

    public void setMov(Movimiento mov) {
        this.mov = mov;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (movId != null ? movId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof MovimientoPago)) {
            return false;
        }
        MovimientoPago other = (MovimientoPago) object;
        if ((this.movId == null && other.movId != null) || (this.movId != null && !this.movId.equals(other.movId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "model.MovPag[ movId=" + movId + " ]";
    }
    
}
